package org.r505.chatroom.global.controller;

import java.util.HashMap;


public class ControllerFactory{
	private final static HashMap<String,String> mappingMethod = new HashMap<String,String>();
	private final static HashMap<String,String> mappingClass = new HashMap<String,String>();
	private ControllerFactory(){}
	public static void createMappingMethod(String mapping, String method){
		mappingMethod.put(mapping, method);
	}
	public static void createMappingId(String mapping, String className){
		mappingClass.put(mapping, className);
	}
	public static String getId(String mapping){
		return mappingClass.get(mapping);
	}
	public static String getMethodName(String mapping){
		return mappingMethod.get(mapping);
	}
}
